#ifndef MYTCPSOCKET_H
#define MYTCPSOCKET_H
#include <QTcpSocket>
#include <string.h>
#include <stdio.h>
#include "protocol.h"
//重新封装的tcpsocket类
class MyTcpSocket : public QTcpSocket
{
    Q_OBJECT
public:
    MyTcpSocket();
    PDU*  handleRegisterRequest(PDU* pdu);
public slots:
    void receiveMsg();

};

#endif // MYTCPSOCKET_H
